<% layout("/common/layout.html",{"title":"下载管理"}){ %>
<div class="row wrapper border-bottom white-bg page-heading">
    <div class="col-sm-8">
        <h2>下载管理</h2>
        <ol class="breadcrumb">
            <li><a href="${ctxPath}/admin/main">主页</a></li>
            <li><a>项目管理</a></li>
            <li class="active">已发项目</li>
        </ol>
    </div>
    <div class="col-sm-4">
        <div class="title-action">
        </div>
    </div>
</div>
<div class="wrapper wrapper-content">
    <div class="ibox float-e-margins animated fadeIn">
        <div class="ibox-content">
            <table id="tableList"></table>
            <div class="toolBar" style="margin:0 -15px;">
                <div class="col-sm-8">
                    <div class="btn-group">
                        <a class="btn btn-primary btn-outline toolbar-refresh"><i class="fa fa-refresh"> </i> 刷新</a>
                        <a class="btn btn-primary btn-outline toolbar-batchStatus"><i class="fa fa-gear"> </i>批量更改状态</a>
                        <a class="btn btn-primary btn-outline toolbar-batchDelete"><i class="fa fa-trash"> </i>批量删除下载</a>
                    </div>
                </div>
                <div class="col-sm-4">
                    <div class="input-group">
                        <input type="text" placeholder="请输入关键词" class="form-control searchValue">
                        <span class="input-group-btn">
                           <button type="button" id="search" class="btn btn-primary"><i  class="fa fa-search"></i>&nbsp;搜索 </button>
                        </span>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<% } %>
<script type="text/javascript">
    //页面JS调用
    require(['project/project'], function (project) {
        project.list();
    });

    //列表参数
    function operateFormatter(value, row, index) {
        var tempCode = "";
        if (row.status === 1) {
            tempCode += '<button type="button" class="status btn btn-white btn-xs"><i class="fa fa-ban"></i>&nbsp;禁用&nbsp;</button>';
        }
        else {
            tempCode += '<button type="button" class="status btn btn-white btn-xs"><i class="fa fa-check"></i>&nbsp;启用&nbsp;</button>';
        }
      tempCode += '<button type="button" class="audit btn btn-white btn-xs"><i class="fa fa-cube"></i>&nbsp;审核&nbsp;</button>';
      tempCode += '<button type="button" class="datail btn btn-white btn-xs"><i class="fa fa-info"></i>&nbsp;详情&nbsp;</button>';
        tempCode += '<button type="button" class="delete btn btn-white btn-xs"><i class="fa fa-trash"></i>&nbsp;删除&nbsp;</button>';
        return '<div class="btn-group">' + tempCode + '</div>';
    }
</script>
</body>
</html>